package com.example.practical_training_projects.service;

import com.example.practical_training_projects.entity.articles;
import com.example.practical_training_projects.vo.voarticlesandclass;
import com.github.pagehelper.PageInfo;
;

import java.util.List;

public interface articlesService {
    List<articles> getThearticles(Integer a_uid);

    PageInfo<voarticlesandclass> findclasspage(Integer pageNum, Integer pageSize);//分页，pageNum：当前是第几页,pageSize：每页多少条数据
    articles findarticlesbyid(Integer a_uid);
    Integer deletearticlesbyid(Integer a_uid);
    Integer insertarticles(articles art);
    Integer updatearticles(articles art);

    List<voarticlesandclass> findAllarticlesandclass();


    PageInfo<voarticlesandclass> findarticlesBytitle(String a_title,Integer pageNum,Integer pageSize);

    PageInfo<voarticlesandclass> findarticlesBytitleAndclassuid(Integer as_uid,String a_title,Integer pageNum,Integer pageSize);

    List<articles> selectauid(String a_title);
}
